<template>
  <div class="app-container">
    <!--账单管理-待付款账单-->
    <div class="top">
      <h5 class="title">待付款账单</h5>
      <div class="nav1">
        <el-button type="primary" round style="width: 120px;height: 36px;font-size: 14px">已付款</el-button>
        <el-button type="primary" round style="width: 120px;height: 36px;font-size: 14px">反记</el-button>
      </div>
      <div class="nav">
        <div class="nav-left">
          <el-input
            v-for="(item,index) in iptStyle"
            :key="index"
            style="width: 200px;height: 36px;margin-right: 10px;"
            :placeholder="item.str"
            :suffix-icon="item.icon"
          >
          </el-input>
        </div>
        <el-button type="primary" round style="width: 120px;height: 32px;">搜索</el-button>
      </div>
      <div class="nav">
        <div class="nav-left">
          <el-input
            v-for="(item,index) in iptStyle1"
            :key="index"
            style="width: 150px;height: 36px;margin-right: 10px;"
            :placeholder="item.str"
            :suffix-icon="item.icon"
          >
          </el-input>
        </div>
        <el-button type="primary" round style="width: 120px;height: 32px;">导出</el-button>
      </div>
    </div>
    <div class="bottom">
      <el-table ref="table" :data="tableData" size="small" style="width: 100%;">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="id" width="100" label="账单编号"></el-table-column>
        <el-table-column prop="groupName" width="100" label="机构/集团"></el-table-column>
        <el-table-column prop="areaId" width="100" label="所属区域"></el-table-column>
        <el-table-column prop="salesId" width="100" label="所属销售"></el-table-column>
        <el-table-column prop="clinicName" width="159" label="诊所/机构名称"></el-table-column>
        <el-table-column  width="100" prop="packageGroupList" label="病例数">
          <template slot-scope="scope">
            <div v-for="(item, index) in scope.row.packageGroupList" :key="index">
              <span>{{ item.patientsCount }}</span>
            </div>
          </template>
        </el-table-column>
        <el-table-column  width="100" prop="packageGroupList" label="套餐类型">
          <template slot-scope="scope">
            <div v-for="(item, index) in scope.row.packageGroupList" :key="index">
              <span>{{ item.packageName }}</span>
            </div>
          </template>
        </el-table-column>
        <el-table-column  width="100" prop="packageGroupList" label="疗程单价">
          <template slot-scope="scope">
            <div v-for="(item, index) in scope.row.packageGroupList" :key="index">
              <span>{{ item.amont }}</span>
            </div>
          </template>
        </el-table-column>
        <el-table-column  width="100" prop="packageGroupList" label="金额">
          <template slot-scope="scope">
            <div v-for="(item, index) in scope.row.packageGroupList" :key="index">
              <span>{{ item.amont }}</span>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="adjustAmountSum" width="100" label="调整金额"></el-table-column>
        <el-table-column prop="invoiceAmountSum" width="100" label="开票总额"></el-table-column>
        <el-table-column prop="settlePeriod" width="100" label="结算周期"></el-table-column>
        <el-table-column prop="invoiceType" width="100" label="发票类型"></el-table-column>
        <el-table-column prop="invoiceItem" width="100" label="发票项目"></el-table-column>
        <el-table-column prop="invoiceTitle" width="100" label="公司名称"></el-table-column>
        <el-table-column prop="creditCode" width="150" label="纳税人识别号"></el-table-column>
        <el-table-column prop="invoiceAddress" width="100" label="地址"></el-table-column>
        <el-table-column prop="invoiceMobile" width="100" label="电话"></el-table-column>
        <el-table-column prop="invoiceBankName" width="100" label="开户行"></el-table-column>
        <el-table-column prop="invoiceAccNumber" width="100" label="帐号"></el-table-column>
        <el-table-column prop="invoiceRemark" width="100" label="发票备注"></el-table-column>
        <el-table-column prop="invoiceRecieverName" width="120" label="邮寄接收人"></el-table-column>
        <el-table-column prop="clinicMobile" width="100" label="邮寄电话"></el-table-column>
        <el-table-column prop="clinicAddress" width="100" label="邮寄地址"></el-table-column>
        <el-table-column prop="invoiceEmail" width="100" label="邮箱"></el-table-column>
        <el-table-column prop="expressCode" width="100" label="顺丰快递单号"></el-table-column>
        <el-table-column prop="invoiceCode" width="100" label="发票号码"></el-table-column>
        <el-table-column prop="invoiceCode" width="100" label="发票状态"></el-table-column>
        <el-table-column prop="adjustRemark" width="100" label="调账说明"></el-table-column>
        <el-table-column prop="adjustStatus" width="120" label="付款人名称"></el-table-column>
        <el-table-column prop="remark" width="120" label="付款人状态"></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      btnStr: ['创建门诊', '编辑门诊', '规则配置', '暂停合作', '导出诊所'],
      iptStyle: [
        {
          str: '搜诊所/代理商名称、诊所/机构联系人、诊所/机构电话',
          icon: 'el-icon-search'
        },
        {
          str: '发票状态',
          icon: 'el-icon-arrow-down'
        },
        {
          str: '付款状态',
          icon: 'el-icon-arrow-down'
        },
        {
          str: '账单创建日期',
          icon: 'el-icon-date'
        }
      ],
      iptStyle1: [
        {
          str: '所属连锁',
          icon: 'el-icon-search'
        },
        {
          str: '所属区域',
          icon: 'el-icon-arrow-down'
        },
        {
          str: '所属销售',
          icon: 'el-icon-arrow-down'
        },
        {
          str: '诊所机构名称',
          icon: 'el-icon-arrow-down'
        },
        {
          str: '发票类型',
          icon: 'el-icon-arrow-down'
        }
      ],
      tableData: []
    };
  },
  methods: {
    blocDetail(row) {
      this.$router.push('details');
    }
  }
};
</script>

<style scoped>
    .top .title {
        margin: 0 0 20px;
        font-size: 30px;
        color: #02a7f0;
    }

    .nav, .nav1 {
      margin-top: 10px;
      display: flex;
    }

    .nav {
      justify-content: space-between;
    }

    .text {
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }

    .bottom {
        margin-top: 10px;
    }
</style>
